ioemu: fix multiple pci-attach/pci-detach by removing the meaningless irq_index
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 1 Sep 2008 09:48:09 +0000 (10:48 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 1 Sep 2008 09:48:09 +0000 (10:48 +0100)
commita06cb3d8d89d953b83bc9a4fcd015e41464fae2a
tree3fe33b990aaebae62d4cb3b8b660602be6bdfa6c
parentf1a381df9c07d58ff924ab0ee3c7400a370eee1e
ioemu: fix multiple pci-attach/pci-detach by removing the meaningless irq_index

For HVM guest, we can't do pci-attach/pci-detach for >64 times due to
the meaningless checking in pci_register_device(). I made a test of
300 times of attach/detach and everything now works well.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
tools/ioemu/hw/pci.c
tools/ioemu/vl.h